package com.gather.zx;

import java.util.AbstractSet;
import java.util.HashSet;
//import java.util.Set;
import java.util.Set;

public class SetDemo1  {
	public static void main(String[] args) {
	    Set<Animal> animals=new HashSet<Animal>();
		
		Animal animal1=new Animal("Dog", 1);
		Animal animal2=new Animal("Dog", 1);
		Animal animal3=new Animal("Dog", 1);
		animals.add(animal1);
		animals.add(animal2);
		animals.add(animal3);
		System.out.println(animals);
		
	}
	
	

}
